<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Qs_type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-qs_type" class="form-control selectpicker" name="row[qs_type]">
                {foreach name="qsTypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.qs_type"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Qs_images')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-qs_images" class="form-control" size="50" name="row[qs_images]" type="textarea" value="{$row.qs_images|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-qs_images" class="btn btn-danger plupload" data-input-id="c-qs_images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-qs_images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-qs_images" class="btn btn-primary fachoose" data-input-id="c-qs_images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-qs_images"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-qs_images"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Qs_contents')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-qs_contents" class="form-control " rows="5" name="row[qs_contents]" cols="50">{$row.qs_contents|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('As_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-as_num" class="form-control" name="row[as_num]" type="number" value="{$row.as_num|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Qs_status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="qsStatusList" item="vo"}
            <label for="row[qs_status]-{$key}"><input id="row[qs_status]-{$key}" name="row[qs_status]" type="radio" value="{$key}" {in name="key" value="$row.qs_status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
